<html>
<head>
<style type="text/css">
	body	{ font-family: sans-serif; font-size: 10px; }
</style>
</head>
<body>
<?php
echo "Loading...";

require ("imdb.class.php");

include 'db.inc.php';
// $imdb_ids = array("0402022","0307343","0285331","0389564","0111873","0367274","0285333","0247082","0395843","0108771","0149460","0413573","0487831","0346314","0411008","0068098","0063929","0364845","0795176","0455275","0384766","0163491","0141842","0160904","0809309","0423775","0050083","0322259","0405422","0312318","0487141","0086879","0120586","0245712","0187696","0106273","0328832","0436071","0478557","0295178","0118655","0145660","0338751","0436091","0034492","0416496","0072684","0430912","0035665","0118715","0265086","0282386","0275230","0221027","0414879","0145681","0082096","0310793","0115744","0083694","0388795","0412019","0281686","0115781","0062765","0103905","0078935","0087032","0082136","0317219","0402894","0402906","0367594","0371606","0241303","0421983","0363771","0406650","0018773","0276866","0213749","0219593","0368647","0021749","0424345","0109445","0389860","0066921","0423409","0387131","0121164","0493226","0489007","0375679","0382625","0075909","0382628","0097165","0072856","0398017","0435625","0367652","0458352","0092890","0407732","0301199","0072890","0116126","0419706","0348593","0065656","0458438","0449851","0446687","0242423","0377818","0361715","0085474","0807840","0380349","0413845","0356150","0059160","0404032","0120663","0118694","0211915","0361596","0116282","0463985","0340110","0154420","0475271","0137523","0195714","0309593","0414982","0173840","0455474","0266543","0408345","0113077","0408790","0432291","0109830","0430105","0093058","0119173","0217505","0057091","0347048","0123865","0455507","0068646","0071562","0099674","0015864","0187078","0433383","0451069","0342492","0070130","0427306","0076112","0391198","0287467","0113243","0113247","0412798","0119250","0366551","0241527","0347149","0473492","0454841","0385002","0450278","0395169","0367790","0428649","0356721","0119345","0130018","0469111","0473365","0268380","0438097","0074670","0071650","0298845","0317705","0097576","0087469","0347246","0418753","0454848","0278504","0099864","0317740","0493430","0424205","0113568","0297753","0444653","0266697","0378194","0360717","0434124","0119468","0373074","0110413","0146316","0272020","0077838","0422618","0277092","0386140","0079470","0385057","0057261","0120737","0399295","0335266","0425210","0351283","0428803","0390221","0066026","0365485","0234215","0242653","0133093","0377092","0085959","0209144","0397535","0430357","0405159","0317919","0027977","0174931","0340855","0071853","0356910","0381074","0120616","0408306","0465624","0102511","0110632","0449077","0337930","0087803","0240772","0349903","0332285","0364569","0380599","0073486","0098032","0124819","0327084","0258000","0335345","0120784","0037988","0084503","0383216","0168122","0383574","0325980","0479125","0091763","0338348","0087928","0089822","0091777","0093756","0095882","0098105","0110857","0430484","0387514","0436686","0054215","0313504","0081398","0082971","0350258","0421239","0253556","0387541","0377109","0298130","0468094","0117500","0449089","0083019","0318649","0473696","0073650","0141799","0422528","0120815","0432348","0306047","0114369","0363988","0245429","0443632","0369053","0379786","0428390","0066359","0307453","0365748","0111161","0454945","0401792","0403508","0439815","0158983","0054331","0361240","0098369","0145531","0378808","0472602","0288831","0348150","0094077","0057546","0244244","0365737","0316732","0075314","0372588","0181852","0427944","0328538","0419294","0410764","0062374","0407265","0114728","0084827","0332452","0468565","0141926","0070849","0363163","0434409","0066380","0114854","0159097","0348333","0352994","0358273","0153642","0120888","0135706","0489037","0261992","0190332","0416315","0014624","0412080","0290334","0299977","0374345","0406375");

$sql = mysql_query("SELECT * FROM m_movies");
$imdb_already = array();
if(mysql_num_rows($sql) > 0){
	while($row = mysql_fetch_array($sql, MYSQL_ASSOC)){
		array_push($imdb_already, $row["imdbID"]);
	}
}


foreach($imdb_already as $ID){
	ob_flush();
	flush();
	
	$movie = new imdb ($ID);
	$movieid = $ID;

	$movie->setid ($movieid);
	if (($photo_url = $movie->photo_localurl() ) != FALSE){
		echo '<img src="'.$photo_url.'">';
	}
}
?>
</body>
</html>